public class 回文数01 {

    public static void main(String[] args) {
        System.out.println(4/3);
        // int num = 120121;
        // //boolean res1 = isPalindromeNumber1(num);
        // boolean res2 = isPalindromeNumber2(num);
        // System.out.println(res2);
    }

    private static boolean isPalindromeNumber1(int num) {
        String str = num + "";
        for (int i = 0; i < str.length() / 2; i++) {
            char a = str.charAt(i);
            char b = str.charAt(str.length() - 1 - i);
            if (a != b) {
                return false;
            }
        }
        return true;
    }

    private static boolean isPalindromeNumber2(int num) {
        int n = num;
        int res = 0;
        while (n != 0) {
            res = res * 10 + n % 10;
            n /= 10;
        }
        return res == num;
    }


}
